home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / basic / bdex.com / BDEX.DOC < prev    next >
Encoding:
Text File  |  1990-08-27  |  4.2 KB  |  103 lines

  1.   BDEX:  BASIC line number reference and organization -- (C) 1990  R. Beck
  2.  
  3.   ════════════════════════════════════════════════════════════════════════════
  4.  
  5.   BDEX was written to help identify algorithms in BASIC programs so that
  6.   they may be converted to another language.  This is not a full translation
  7.   utility, but it helps to convert program code to a vertical format.
  8.  
  9.   It separates commands and removes unreferenced line numbers --which is
  10.   more readable and easier to reverse-engineer.  The line numbers that do
  11.   remain are preceded by an "L" to identify them as a label.
  12.  
  13.   Arrays, variables, and strings are listed separately.
  14.  
  15.   BDEX is capable of crude translation to structured BASIC, C, or Pascal by
  16.   using the "/B", "/C", or "/P" options.  The results, although limited,
  17.   are especially useful for changing quote characters in Pascal strings.
  18.  
  19.   Indentations will follow IF/THEN, FOR/NEXT, and WHILE/WEND conditions to
  20.   simplify the listing.  This is in effect only until the next label.
  21.  
  22.   Spaces are normally used for indenting, but TAB characters may be
  23.   substituted by using "/T" on the command line.
  24.  
  25.   BEGIN/END markings in Pascal, {/} markings in C, and IF/END_IF markings
  26.   will be inserted automatically for IF/THEN conditions.  This cannot be
  27.   done with FOR/NEXT or WHILE/WEND blocks.
  28.  
  29.   C programmers should pay special attention to the FOR/NEXT commands, and how
  30.   they are converted.
  31.  
  32.   This program was recently improved to recognize assignment statements for
  33.   C and Pascal translation.
  34.  
  35.  
  36.   The syntax is command-line oriented:
  37.  
  38.             BDEX <filename> [/B|/C|/P] [/T]
  39.  
  40.                 /B  --modifies some code for structured BASIC
  41.                 /C  --modifies some code for C translation
  42.                 /P  --modifies some code for Pascal
  43.                 /T  --uses TAB characters
  44.  
  45.  
  46.   ════════════════════════════════════════════════════════════════════════════
  47.  
  48.   Randolph Beck
  49.   P.O. Box  56-0487
  50.   Orlando, FL 32856
  51.  
  52.   CIS:  72361,753
  53.  
  54.  
  55.  
  56.  
  57.          ----------------end-of-author's-documentation---------------
  58.  
  59.                          Software Library Information:
  60.  
  61.                     This disk copy provided as a service of
  62.  
  63.                            Public (software) Library
  64.  
  65.          We are not the authors of this program, nor are we associated
  66.          with the author in any way other than as a distributor of the
  67.          program in accordance with the author's terms of distribution.
  68.  
  69.          Please direct shareware payments and specific questions about
  70.          this program to the author of the program, whose name appears
  71.          elsewhere in  this documentation. If you have trouble getting
  72.          in touch with the author,  we will do whatever we can to help
  73.          you with your questions. All programs have been tested and do
  74.          run.  To report problems,  please use the form that is in the
  75.          file PROBLEM.DOC on many of our disks or in other written for-
  76.          mat with screen printouts, if possible.  PsL cannot debug pro-
  77.          programs over the telephone, though we can answer questions.
  78.  
  79.          Disks in the PsL are updated  monthly,  so if you did not get
  80.          this disk directly from the PsL, you should be aware that the
  81.          files in this set may no longer be the current versions. Also,
  82.          if you got this disk from another vendor and are having prob-
  83.          lems,  be aware that  some files may have become corrupted or
  84.          lost by that vendor. Get a current, working disk from PsL.
  85.  
  86.          For a copy of the latest monthly software library newsletter
  87.          and a list of the 2,000+ disks in the library, call or write
  88.  
  89.                            Public (software) Library
  90.                                P.O.Box 35705 - F
  91.                             Houston, TX 77235-5705
  92.  
  93.                                 1-800-2424-PSL
  94.                                  MC/Visa/AmEx
  95.  
  96.                           Outside of U.S. or in Texas
  97.                           or for general information,
  98.                               Call 1-713-524-6394
  99.  
  100.                           PsL also has an outstanding
  101.                           catalog for the Macintosh.
  102.  
  103.